home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / DESK / CORE / Desk / h / Core < prev    next >
Text File  |  1996-06-03  |  1KB  |  55 lines

  1.  
  2. #ifndef __Desk_Core_h
  3. #define __Desk_Core_h
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef enum {
  8. Desk_bool_FALSE = 0,
  9. Desk_FALSE = 0,
  10. Desk_bool_TRUE = 1,
  11. Desk_TRUE = 1
  12. }
  13. Desk_bool;
  14. #include <stddef.h>
  15. #ifdef __CC_NORCROFT
  16. #include "kernel.h"
  17. typedef _kernel_oserror Desk_os_error;
  18. #else
  19. typedef struct
  20. {
  21. int errnum;
  22. char errmess[252];
  23. }
  24. Desk_os_error;
  25. #endif
  26. #define Desk_UNUSED_ARG(x) ((x) = (x))
  27. #define Desk_UNUSED(x) ((x) = (x))
  28. #ifndef Desk_MAX
  29. #define Desk_MAX(x, y) ((x) > (y) ? (x) : (y))
  30. #define Desk_MIN(x, y) ((x) < (y) ? (x) : (y))
  31. #endif
  32. #if defined(Desk_SDLS_CLIENT) || defined(_DLL)
  33. #define Desk__using_SDLS
  34. #endif
  35. #if defined(Desk__MODULE_CLIENT) || defined(_DLL)
  36. #define Desk__Zm
  37. #endif
  38. #ifdef _DLL
  39. #define __wimp_h
  40. #define __os_h
  41. #include "DLLLib.dll.h"
  42. #define Desk_SDLS_dllEntry(FnName) _dllEntry(FnName)
  43. #define Desk_SDLS_PtrFn(staticextern, returntype, FnName) \
  44. extern returntype _dllEntry(FnName) ; \
  45. extern returntype FnName
  46. #else
  47. #define Desk_SDLS_dllEntry(FnName) FnName
  48. #define Desk_SDLS_PtrFn(staticextern, returntype, FnName) \
  49. staticextern returntype FnName
  50. #endif
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif
  55.